define(['durandal/system', 'knockout'], function(system, ko) {
    var vmodel = ko.observable();

    var vm = {
        activate:activate,
        title:'视频',
        deactivate:deactivate,
        vmodel:vmodel,
    };

    return vm;

    function activate(id) {
        system.log('视频面板激活', null, 'details', true);
        return loadObservables(id);
    }

    function deactivate() {
        system.log('视频面板取消激活', null, 'details', true);
    }

    function loadObservables(id) {
        vmodel({ id:id, name:'视频面板' });
    }
});